package edu.vt.ece_3574.amber_alert.membership;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import edu.vt.ece_3574.amber_alert.MemberMain;
import edu.vt.ece_3574.amber_alert.R;

public class MemberAccountSettings extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.member_account_settings);
		
		Button saveButton = (Button) findViewById(R.id.saveButton);
		saveButton.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent i = new Intent(MemberAccountSettings.this, MemberMain.class);
				startActivity(i);
				finish();
			}
		});
		
		Button addAParentButton = (Button) findViewById(R.id.addAParentButton);
		addAParentButton.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent i = new Intent(MemberAccountSettings.this, PrimaryAdderActivity.class);
				startActivity(i);
				MemberAccountSettings.this.finish();
			}
		});
	}
	
	public void onBackPressed() {
		Intent i = new Intent(MemberAccountSettings.this, MemberMain.class);
		startActivity(i);
		finish();
		return;
	}
}
